[NO-MERGE][CMPT-5391] feat(pipelines): add dr pipelines input subcommand group - #4
Closed
sunny2get wants to merge 20 commits into
Closed
[NO-MERGE][CMPT-5391] feat(pipelines): add dr pipelines input subcommand group#4sunny2get wants to merge 20 commits into
sunny2get wants to merge 20 commits into
Conversation
This was referenced May 20, 2026
sunny2get
force-pushed
the
cmpt-5391/pipelines-runs
branch
from
May 25, 2026 17:17
3b67874 to
8635c06
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-inputs
branch
from
May 25, 2026 17:17
3ee2586 to
acb594c
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-runs
branch
from
May 25, 2026 17:40
8635c06 to
3717d1b
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-inputs
branch
from
May 25, 2026 17:40
acb594c to
81a9af4
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-runs
branch
from
May 25, 2026 17:45
3717d1b to
d5887ee
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-inputs
branch
from
May 25, 2026 17:45
81a9af4 to
81c5e2f
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-runs
branch
from
May 25, 2026 18:01
d5887ee to
4221070
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-inputs
branch
from
May 25, 2026 18:04
81c5e2f to
30b4457
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-runs
branch
from
May 25, 2026 18:50
4221070 to
1d58306
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-inputs
branch
from
May 25, 2026 18:51
30b4457 to
e6f95b1
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-runs
branch
from
May 25, 2026 20:33
1d58306 to
c764828
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-inputs
branch
from
May 25, 2026 20:33
e6f95b1 to
1cbe1f0
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-runs
branch
from
May 27, 2026 15:57
c764828 to
e8ffcc9
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-inputs
branch
from
May 27, 2026 15:57
1cbe1f0 to
d02bc3c
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-runs
branch
from
May 27, 2026 16:19
e8ffcc9 to
06be780
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-inputs
branch
from
May 27, 2026 16:19
d02bc3c to
b0004a8
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-runs
branch
from
May 27, 2026 16:30
06be780 to
3c836b4
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-inputs
branch
from
May 27, 2026 16:30
b0004a8 to
db0a2cc
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-runs
branch
from
May 27, 2026 16:35
3c836b4 to
a540260
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-inputs
branch
from
May 27, 2026 16:35
db0a2cc to
f895bef
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-runs
branch
from
May 28, 2026 14:37
a540260 to
ade0a73
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-inputs
branch
from
May 28, 2026 14:37
f895bef to
44e76ff
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-runs
branch
from
May 28, 2026 14:40
ade0a73 to
18a5d09
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-inputs
branch
from
May 28, 2026 14:40
44e76ff to
7b6caf0
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-runs
branch
from
May 28, 2026 14:46
18a5d09 to
8514908
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-inputs
branch
from
May 28, 2026 14:46
7b6caf0 to
eda298a
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-runs
branch
from
May 28, 2026 15:30
8514908 to
5dfeca0
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-inputs
branch
from
May 28, 2026 15:30
eda298a to
0c11ebd
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-inputs
branch
from
June 1, 2026 15:00
ca7a585 to
5cc306a
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-runs
branch
from
June 1, 2026 16:03
9d6597f to
fa1e5bf
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-inputs
branch
6 times, most recently
from
June 1, 2026 17:53
35653a5 to
1c336c6
Compare
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…ot-oss#541) Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Adds the input subcommand group for managing JSON payloads used by runs
(create/list/get/update/delete).
- internal/pipelines/input.go: CreateInput, ListInputs, GetInput,
UpdateInput, DeleteInput — API client for the /inputs endpoints
- cmd/pipelines/input/: input create/list/get/update/delete + inpututil
- docs: input section in pipelines.md, input endpoints in pipelines-reference.md
Inputs exist in draft (mutable) and locked (tied to a version) scopes.
The payload file is wrapped in {"payload": …} before sending to the API.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Apply sunny/pipelines versions of input subcommand files and update all import paths to use internal/pipeline (singular) after rename. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…n, limit defaults, version prefix Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…putJSON wrapper, package name Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
sunny2get
force-pushed
the
cmpt-5391/pipelines-inputs
branch
from
June 2, 2026 20:34
1c336c6 to
cba8234
Compare
…t, delete dead inpututil package
- Add cmd.MarkFlagRequired("pipeline") to input create and input get,
consistent with del/list/update and all run commands
- Delete cmd/pipeline/input/inpututil/ entirely — all four files
(payload.go, render.go, and their tests) were dead code; production
commands import the equivalent functions from internal/pipeline
- Update TestCmd_RejectsMissingPipeline assertions from "--pipeline" to
"pipeline" to match Cobra's required-flag error format
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ayload DTO, doc fixes - Add internal/pipeline/input_output_test.go: JSON key remapping (input_id, scope/version/pipeline_id), RFC3339 timestamps, empty-list human message, table render — mirrors run_output_test.go pattern - Change inputJSON.Payload from json.RawMessage to map[string]any; remove the json.Marshal + ignored-error step in toInputJSON (Payload is already a map[string]any from the API decode) - Fix comment typo: "dr pipelines create" → "dr pipeline create" in internal/pipeline/input_payload.go - Add locked URL variant to input get and input delete rows in docs/commands/pipelines-reference.md Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
…d tests - Replace Version string (with placeholder) in inputJSON with VersionID *int,omitempty so draft inputs omit the field entirely and locked inputs emit a numeric value - Update input_output_test.go assertions for the new pointer field - Add input_payload_test.go covering ResolvePayload/resolvePayloadFilePath: positional arg, --from-file, both-provided, neither-provided, file-not-found, invalid JSON, and non-object JSON Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
dr pipelines input create/list/get/update/delete— manage JSON payloads used by pipeline runs--scope/--version){"payload": …}before sending to the APIcmd/pipelines/input/inpututil/rendering helpers andinternal/pipelines/input.goStacked on:
cmpt-5391/pipelines-runs— diff here shows only the delta.Test plan
go build ./...go test ./cmd/pipelines/input/... ./internal/pipelines/...dr pipelines input --help— shows create/list/get/update/deletedr pipelines input create --pipeline <id> --help🤖 Generated with Claude Code